import request2 from '@/utils/request2'
import { safetyApiUrl } from '../../config'

export default {
  findListByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/findListByMain', method: 'post', params, data
    })
  },
  findListByCount(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/findListByCount', method: 'post', params, data
    })
  },
  editByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/editByMain', method: 'post', params, data
    })
  },
  deleteByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/deleteByMain', method: 'post', params, data
    })
  },
  createByMain(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/createByMain', method: 'post', params, data
    })
  },
  getRiskTemplate(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/getRiskTemplate', method: 'get', params, data
    })
  },
  findListByMainId(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/findListByMainId/' + params.id, method: 'get', params, data
    })
  },
  print(data, params) {
    return request2({
      url: safetyApiUrl + '/penalty_rate_account/print/' + params.id, method: 'get', params, data
    })
  }
}